const path = require('path');

module.exports = {
  entry: './src/VirtualTryOn.js',
  mode: 'production',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'vto-sdk.min.js',
    library: 'VirtualTryOn',
    libraryTarget: 'umd',
    // ↓↓↓ 添加这一行配置 ↓↓↓
    libraryExport: 'default', 
    globalObject: 'this'
  }
};